<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>平移</title>
		<style>
			div{
				width: 100px;
				height: 100px;
				background-color: red;
				animation: move1 2s infinite 3s;
			}
			@keyframes move1{
				from{
					width: 100px;
					height: 100px;
					background-color: red;
					transform: translateX(0);
				}
				to{
					width: 100px;
					height: 100px;
					background-color: red;
					transform: translateX(400px);
				}
			}
		</style>
	</head>
	<body>
		<div></div>
	</body>
</html>